package com.huike.ycu.mybatis.mybatis.mapper;

import com.huike.ycu.mybatis.model.Customer;

import java.util.List;
/*数据层相当于dao层*/
public interface CustomerMapper {
    /*查询所有的客户*/
    List<Customer> getAll();

    /*根据id查询*/
    Customer getOne(Long id);

    /*增加客户*/
    void insert(Customer customer);

    /*更新客户*/
    void updata(Customer customer);

    /*删除客户*/
    void delete(Long id);



}
